import React from 'react';
import { Result } from 'antd';
import { Button } from 'antd-mobile';
import { history } from 'umi';
import styles from './index.less';

const Exception403: React.FC<{}> = () => (
  <div className={styles.page}>
    <Result
      status="404"
      title="404"
      extra={
        <Button type="primary" onClick={() => history.replace(`/`)}>
          返回首页
        </Button>
      }
    />
  </div>
);

export default Exception403;
